#include "Queue.h"
#include<iostream>
using namespace std;

void main()
{
	Queue<double,7> queue;
	Queue<double,7> queue2;
	queue.push(1.0);
	queue.push(1.1);
	queue.push(1.2);
	queue.push(1.3);
	for (int i = 0; i < 4; i++)
	{
		double outValue;
		queue.pop(outValue);
		cout<<outValue<<endl;
	}
	cout<<endl;
	queue.push(1.4);
	queue.push(1.5);
	queue.push(1.6);

	queue2 = queue;
	queue2.push(2.0);
	queue2.push(2.1);
	double outValue;
	while (queue.pop(outValue))
	{
		cout<<outValue<<endl;
	}
	cout<<endl;
	while (queue2.pop(outValue))
	{
		cout<<outValue<<endl;
	}
}